<template>
  <view>
    <h1 style="font-size: 50px;">网站用户数量</h1>
    <el-icon style="font-size: 200px;"><UserFilled /></el-icon>
    <p style="font-size: 50px;">{{userCount}}</p>
  </view>
</template>

<script setup>
import {dashboard} from '@/api'
import {ref,onMounted} from 'vue'

const userCount = ref(0)

onMounted(async()=>{
    const res = await dashboard.userCount().then(res=>{
        console.log(res)
        return res
    })
    userCount.value = res.data.data
}
)
</script>

<style>

</style>